﻿<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<div class="header">
  <div class="headfunc">
      当前用户&nbsp;&nbsp;:&nbsp;&nbsp;<sec:authentication property="principal.userDisplayName"></sec:authentication>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

 
  <a href="<%=session.getAttribute("CURRENT_RESTFUL_URL")%>?locale=ja_JP">日文</a> 
  <a href="<%=session.getAttribute("CURRENT_RESTFUL_URL")%>?locale=zh_CN">中文</a> 
	
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  <a href="admin/adminuser/edit/<sec:authentication property="principal.username"></sec:authentication>">
			个人信息
  </a>&nbsp;&nbsp;
  <a href="admin/logout"><spring:message code="Label.index.logout"/></a>&nbsp;&nbsp;
  <a href="#">进入首页</a>&nbsp;&nbsp; 
  <a href="#">站内消息</a>
  </div>
  <div style="position: absolute; left: 0; top: 0; font-size: 36px; color: #F60; font-family: '华文琥珀';">
	梦幻后台
  </div>
  <div id="head-nav" style="position:absolute; right:0; bottom:0; margin-bottom:3px;">
  <ul class="nav">
      <li><a href="admin/sitesetting"><spring:message code="Label.menu.headnav.site"/></a></li>
      <li><a href="admin/user/external/list"><spring:message code="Label.menu.headnav.user"/></a></li>
      <li><a href="admin/game/list"><spring:message code="Label.menu.headnav.goods"/></a></li>
      <li><a href="admin/order/list"><spring:message code="Label.menu.headnav.order"/></a></li>
      <li><a href="#"><spring:message code="Label.menu.headnav.news"/></a></li>
      <li><a href="#"><spring:message code="Label.menu.headnav.audit"/></a></li>
      <li><a href="#"><spring:message code="Label.menu.headnav.demand"/></a></li>
      <li><a href="#"><spring:message code="Label.menu.headnav.comment"/></a></li>
      <li><a href="#"><spring:message code="Label.menu.headnav.promotion"/></a></li>
      <li><a href="#"><spring:message code="Label.menu.headnav.message"/></a></li>
      <li><a href="#"><spring:message code="Label.menu.headnav.service"/></a></li>
      <li><a href="#"><spring:message code="Label.menu.headnav.finance"/></a></li>
    </ul>  
  </div>
</div>
<div id="infoDialog" style="display:none;">
	<div class="fltlft"><img id="imgId"/></div>
	<div class="fltlft" style="margin:15px 0 0 20px;"><label id="info-msg"></label></div>
</div>

<script type="text/javascript">
<!--

$(document).ready(
		function() {
			var height = $("#contentBoxDiv").height();
			$("#sideBarDiv").height(height+10);
		});

function showInfoDialog(type, msg, callback) {
	var title = "<spring:message code='Label.dialog.title.info'/>";
	var imgsrc = "resources/images/icons/success.png";
	
	if ("info" == type) {
		title = "<spring:message code='Label.dialog.title.info'/>";
		imgsrc = "resources/images/icons/notice.png";
	} else if ("success" == type) {
		title = "<spring:message code='Label.dialog.title.info'/>";
		imgsrc = "resources/images/icons/success.png";
	} else if ("error" == type) {
		title = "<spring:message code='Label.dialog.title.error'/>";
		imgsrc = "resources/images/icons/error.png";
	} else if ("warn" == type) {
		title = "<spring:message code='Label.dialog.title.info'/>";
		imgsrc = "resources/images/icons/warning.png";
	}
	
	$("#info-msg").html(msg);
	$("#imgId").attr("src",imgsrc);
	
	$("#infoDialog").dialog({
		modal: true,
		autoOpen: false,
		width: 400,
		show: {
	        effect: 'fade',
	        duration: 200
	    },
	    hide: {
	        effect: 'fade',
	        duration: 100
	    },
		/* open: function(event, ui) {$(".ui-dialog-titlebar").show();}, */
		title : title,
		buttons: [
			{
				text: "<spring:message code='Label.dialog.ok'/>",
				click: function() {
					$(this).dialog("close");
				}
			}
		],
		close: function( event, ui ) {
					if (callback != null) {
						callback();
					}
				}
	}).dialog("open");
	
	
}
function showConfirmDialog(msg, callback) {
	$("#info-msg").html(msg);
	$("#imgId").attr("src","resources/images/icons/warning.png");
	$("#infoDialog").dialog({
		modal: true,
		autoOpen: false,
		width: 400,
		show: {
	        effect: 'fade',
	        duration: 200
	    },
	    hide: {
	        effect: 'fade',
	        duration: 100
	    },
		open : function(event, ui) {$(".ui-dialog-titlebar").show();},
		title : "<spring:message code='Label.dialog.title.confirm'/>",
		buttons: [
			{
				text: "<spring:message code='Label.dialog.ok'/>",
				click: function() {
					$(this).dialog("close");
					callback(true);
				}
			},
			{
				text: "<spring:message code='Label.dialog.cancel'/>",
				click: function() {
					$(this).dialog("close");
					callback(false);
				}
			}
		]
	}).dialog("open");
}

var dataTableLabels = new Array();
dataTableLabels[0] = "<spring:message code='Datatable.sProcessing'/>";
dataTableLabels[1] = "<spring:message code='Datatable.sLengthMenu'/>";
dataTableLabels[2] = "<spring:message code='Datatable.sZeroRecords'/>";
dataTableLabels[3] = "<spring:message code='Datatable.sInfo'/>";
dataTableLabels[4] = "<spring:message code='Datatable.sInfoEmpty'/>";
dataTableLabels[5] = "<spring:message code='Datatable.sInfoFiltered'/>";
dataTableLabels[6] = "<spring:message code='Datatable.sInfoPostFix'/>";
dataTableLabels[7] = "<spring:message code='Datatable.sSearch'/>";
dataTableLabels[8] = "<spring:message code='Datatable.sUrl'/>";
dataTableLabels[9] = "<spring:message code='Datatable.sFirst'/>";
dataTableLabels[10] = "<spring:message code='Datatable.sPrevious'/>";
dataTableLabels[11] = "<spring:message code='Datatable.sNext'/>";
dataTableLabels[12] = "<spring:message code='Datatable.sLast'/>";

//-->
</script>
 	